package com.xsp.eduservice.client;

import com.xsp.commonutils.R;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(name = "service-vod",fallback = VodFileDegradeFeignClient.class)
public interface VoClient {
    //根据视频id删除视频
    @DeleteMapping("/eduvod/video/delete/{videoId}")
    public R removeVideo(@PathVariable("videoId") String videoId);

    //批量删除视频
    @DeleteMapping("eduvod/video/delete-batch")
    public R removeVideoList(@RequestParam("videoIdList") List<String> videoIdList);
}
